package com.myspring.integration.webservice.cxf.spring;

import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 参考资料：
 * CXF实现webService服务（一）：http://blog.csdn.net/hu_shengyang/article/details/38384597
 * java webservice 的远程访问之CXF：http://www.cnblogs.com/xiujie/articles/4916548.html
 */
public class SimpleTest {
    private static ApplicationContext context;

    @BeforeClass
    public static void before() {
        context = new ClassPathXmlApplicationContext("spring/integration/client-cxf.xml");
    }

    @Test
    public void testHi() {
        context.getBean("helloClient");
    }
}
